package is.sclab.mail;

public class MessageBody {

	String sender;
	String receiver;
	String subject;
	String text;
	
	public static class Builder{
	
		String sender = "";
		String receiver = "";
		String subject = "";
		String text = "";
		
		public Builder(String sender,String receiver){
			this.sender=sender;
			this.receiver=receiver;
		}
		
		public Builder Subject(String subject){
			this.subject=subject;
			return this;
		}
		
		public Builder Text(String text){
			this.text=text;
			return this;
		}
		
		public MessageBody Build(){
			return new MessageBody(this);
		}
	}
	
	private MessageBody(Builder builder){
		sender=builder.sender;
		receiver=builder.receiver;
		subject=builder.subject;
		text=builder.text;
	}

	public String getSender() {
		return sender;
	}

	public String getReceiver() {
		return receiver;
	}

	public String getSubject() {
		return subject;
	}

	public String getText() {
		return text;
	}
}
